import os
import sys
import os.path
import shutil

# rootdir = "/home/letitia/JPEGImages/"
# txtpath = "/home/letitia/test.txt"
# targetpath = "/home/letitia/target/"
# rootdir = "/home/letitia/py-R-FCN/data/VOCdevkit2007/task_10216/JPEGImages"

# f = open(txtpath,"r")
# lines = f.readlines()


# for path,subdir,dirnames in os.walk(rootdir):
# 	for dirname in dirnames:
# 		s = dirname.split('.')
# 		if s[0] + "\n" in lines:
# 			print dirname
# 			shutil.copy(rootdir + dirname, targetpath+dirname)

